import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import {ElMessage} from 'element-plus'
import 'element-plus/dist/index.css'
import locale from'element-plus/lib/locale/lang/zh-cn'
import * as ElIconModules from '@element-plus/icons'
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import { Expand } from '@element-plus/icons'
import VueParticles from 'vue-particles'  
// import AmapVue from '@amap/amap-vue';


// AmapVue.config.version = '2.0'; 
// AmapVue.config.key = '2665f356c6dedefa46cd87576c844e25';//申请的AMapKey
// AmapVue.config.plugins = [
//   'AMap.Autocomplete',
//   'AMap.PlaceSearch',
//   'AMap.Scale',
//   'AMap.OverView',
//   'AMap.ToolBar',
//   'AMap.MapType',
//   'AMap.PolyEditor',
//   'AMap.CircleEditor',
//   'AMap.Geocoder',
//   'AMap.MarkerClusterer'
// ];



const app = createApp(App);

for (const iconName in ElIconModules) {
    if (Reflect.has(ElIconModules, iconName)) {
      const item = ElIconModules[iconName]
      app.component(iconName, item)
    }
  }

app.use(store)
.use(router)
.use(ElementPlus,{locale})
.use(VXETable)
.use(ElMessage)
.use(VueParticles) 
// .use(AmapVue)
.component('expand',Expand)
app.mount('#app')

